﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ViewCinemaControl.ascx.cs" Inherits="MBS.UserControls.CinemaUserControl.ViewCinemaControl" %>
<%@ Register src="CinemaList.ascx" tagname="CinemaList" tagprefix="uc1" %>
<style type="text/css">
    .style1
    {
        width: 100%;
    }
</style>

<table class="style1">
<uc1:CinemaList ID="CinemaList1" runat="server" />
    <tr>
        <td width="20%">
            <asp:Label ID="Label1" runat="server" Text="CinemaID" CssClass="label"></asp:Label>
        </td>
        <td width="80%">
            <asp:Label ID="Label6" runat="server" Text="Label" CssClass="label"></asp:Label>
        </td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="Label2" runat="server" Text="CinemaName" CssClass="label"></asp:Label>
        </td>
        <td>
            <asp:TextBox ID="TextBox3" runat="server" CssClass="textbox"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server"  Text="*"
                ErrorMessage="RequiredFieldValidator" ControlToValidate="TextBox3"></asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="Label3" runat="server" Text="CinemaLocation" CssClass="label"></asp:Label>
        </td>
        <td>
            <asp:TextBox ID="TextBox1" runat="server" CssClass="textbox"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"  Text="*"
                ErrorMessage="RequiredFieldValidator" ControlToValidate="TextBox1"></asp:RequiredFieldValidator>
&nbsp;</td>
        </td>
    </tr>
    <tr>
        <td>
            <asp:Label ID="Label4" runat="server" Text="NumberOfScreens" CssClass="label"></asp:Label>
        </td>
        <td>
           <asp:TextBox ID="TextBox2" runat="server" CssClass="textbox"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"  Text="*"
                ErrorMessage="RequiredFieldValidator" ControlToValidate="TextBox2"></asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                ControlToValidate="TextBox2" ErrorMessage="Enter Number" 
                ValidationExpression="^[0-9]+$"></asp:RegularExpressionValidator>
        </td>
    </tr>

    <tr>
        <td>
           
        </td>
        <td>
        <asp:Button ID="DeleteCinemaBtn" runat="server" onclick="DeleteCinemaBtn_Click" 
    Text="Delete" CssClass="button"/>
    <asp:Button ID="Button1" runat="server" Text="Update" onclick="Button1_Click" CssClass="button"/>
        </td>
    </tr>
     <tr>
        <td>
           
        </td>
        <td>
    
        </td>
    </tr>
    <tr>
        <td>
           
        </td>
        <td>
    <asp:ValidationSummary ID="ValidationSummary1" runat="server" />
    </td>
    </tr>
</table>

